from src.Class import *

def fun_pipeCreate():
    print("管道已生成")

def pipes_to_blocks(pipes,x):
    d = []
    for i in range(len(pipes)):
        a = pipes[i]
        a0 = a[0]
        a1 = a[1]
        a2 = a[2]
        a3 = a[3]
        b0 = a2 + x * 2
        b1 = a3 + x * 2
        b = [a0, a1, b0, b1]
        c = dian2(b[0],b[1],b[2],b[3])
        d.append(c)
    print(d)